import java.util.Date;

import com.s06.h01.model.User;
import com.s06.h01.utils.UserUtils;

public class UserInformation {

	public static void main(String[] args) {

		String[] strings = { "lukasz, jankowski, 1980-01-11",
				"Ktes, Kolek, 1977-01-11", "Janek, Wwww, 1973-01-11" };

		User[] users = new User[strings.length];

		for (int i = 0; i < strings.length; i++) {
			String string = strings[i];
			User user = UserUtils.parse(string);
			users[i] = user;
		}
		for (User user : users) {
			user.makeNameToUpper();
			Date updateD = new Date();
			user.setUpdateDate(updateD);
		}
		Date dateCurrent = new Date();
		for (User user : users) {
			user.greetYourself(dateCurrent);
		}
	}
}
